<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Shopping list</title>
		<script type="text/javascript">
			alert(document.getElementByTagName("li").length);
		</script>
	</head>
	<body>
		<h1>What to buy</h1>
		<p title="a gentle reminder">Don't forget to buy this stuff.</p>
		<ul id="d1">
			<li>a tin of beans</li>
			<li class="sale">Cheese</li>
			<li class="sale">Milk</li>
		</ul>
		
	</body>
</html>